package cn.stylefeng.guns.modular.basic.mapper;

import cn.stylefeng.guns.modular.basic.entity.BasicCarrier;
import cn.stylefeng.guns.modular.basic.model.params.BasicCarrierParam;
import cn.stylefeng.guns.modular.basic.model.result.BasicCarrierResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 承运商档案 Mapper 接口
 * </p>
 *
 * @author zhucx
 * @since 2022-12-29
 */
public interface BasicCarrierMapper extends BaseMapper<BasicCarrier> {

    /**
     * 获取列表
     *
     * @author zhucx
     * @Date 2022-12-29
     */
    List<BasicCarrierResult> customList(@Param("paramCondition") BasicCarrierParam paramCondition);

    /**
     * 获取map列表
     *
     * @author zhucx
     * @Date 2022-12-29
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") BasicCarrierParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author zhucx
     * @Date 2022-12-29
     */
    Page<BasicCarrierResult> customPageList(@Param("page") Page page, @Param("paramCondition") BasicCarrierParam paramCondition, @Param("condition") String condition, @Param("operateId")Long operateId);

    /**
     * 获取分页map列表
     *
     * @author zhucx
     * @Date 2022-12-29
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") BasicCarrierParam paramCondition);

	List<BasicCarrierResult> findListBySpec(@Param("paramCondition")BasicCarrierParam param, @Param("operateId")Long operateId);

	BasicCarrierResult findBySpec(@Param("paramCondition")BasicCarrierParam param, @Param("operateId")Long operateId);

    BasicCarrierResult findByCarrierName(@Param("carrierName") String carrierName, @Param("operateId")Long operateId);


}
